package com.chinasoft.class6.group4;

import com.chinasoft.main.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class WuWenHao implements TrueWord {
    List<String> wordList = new ArrayList<String>();

    public WuWenHao() {
        wordList.add("明天不来上课了。");
        wordList.add("今天看阅兵！");
    }

    @Override
    public String getName() {
        return "吴文浩";
    }

    @Override
    public String getWord() {
        int index = new Random().nextInt(wordList.size());
        return this.wordList.get(index);
    }
}
